<template>
  <div class="section container">
    <!-- 轮播图下 图片广告 -->
    <div class="top">
        <a :href="'#/index/product/'+item.id" v-for="item of adsList" :key="item.id">
            <img v-lazy="item.img" alt="">
        </a>
      <!-- <img src="/imgs/ads/ads-1.png" alt="" />
      <img src="/imgs/ads/ads-2.jpg" alt="" />
      <img src="/imgs/ads/ads-3.png" alt="" />
      <img src="/imgs/ads/ads-4.jpg" alt="" /> -->
    </div>
    <div class="bottom">
      <img v-lazy="'/imgs/banner-1.png'" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  name: "Section",
  data() {
    return {
      adsList: [
        {
          id: 33,
          img: "/imgs/ads/ads-1.png",
        },
        {
          id: 48,
          img: "/imgs/ads/ads-2.jpg",
        },
        {
          id: 45,
          img: "/imgs/ads/ads-3.png",
        },
        {
          id: 47,
          img: "/imgs/ads/ads-4.jpg",
        },
      ],
    };
  },
};
</script>

<style lang="scss">
.section {
  width: 100%;
  .top {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    img {
      width: 296px;
      height: 167px;
    }
  }
  .bottom {
    img {
      width: 100%;
    }
  }
}
</style>